From: Stef Walter Date: Fri, 10 Aug 2012 18:12:39 +0000 (+0900) Subject: Allow building with CFLAGS=-Werror X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~16690 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=094fcd6fb7609361a864c6f3473791bf849c6bbc;p=gtk%2B3.0.git Allow building with CFLAGS=-Werror Allow building using: $ CFLAGS=-Werror sh autogen.sh --prefix=/xxx --- diff --git a/configure.ac b/configure.ac index 6fea3afcc8..41e24a3928 100644 --- a/configure.ac +++ b/configure.ac @@ -987,11 +987,13 @@ if test "x$enable_x11_backend" = xyes; then AC_MSG_CHECKING([if is needed for xReply]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[xReply *rep;]])], + [[xReply *rep = NULL; + rep = rep;]])], [AC_MSG_RESULT([no])], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include ]], - [[xReply *rep;]])], + [[xReply *rep = NULL; + rep = rep;]])], [AC_MSG_RESULT([yes]) AC_DEFINE([NEED_XIPROTO_H_FOR_XREPLY], [1], [Define if needed for xReply])],